Action hook 'delete_{$taxonomy}'

in WP Core File wp-includes/taxonomy.php at line 2215

Description

Fires after a term in a specific taxonomy is deleted. The dynamic portion of the hook name, `$taxonomy`, refers to the specific taxonomy the term belonged to. Possible hook names include: - `delete_category` - `delete_post_tag`

Occurrences

Filename Line Number
wp-includes/taxonomy.php 2215

Parameters

Type Name Description
int $term Term ID.
int $tt_id Term taxonomy ID.
WP_Term $deleted_term Copy of the already-deleted term.
array $object_ids List of term object IDs.

PHP Doc

/**
	 * Fires after a term in a specific taxonomy is deleted.
	 *
	 * The dynamic portion of the hook name, `$taxonomy`, refers to the specific
	 * taxonomy the term belonged to.
	 *
	 * Possible hook names include:
	 *
	 *  - `delete_category`
	 *  - `delete_post_tag`
	 *
	 * @since 2.3.0
	 * @since 4.5.0 Introduced the `$object_ids` argument.
	 *
	 * @param int     $term         Term ID.
	 * @param int     $tt_id        Term taxonomy ID.
	 * @param WP_Term $deleted_term Copy of the already-deleted term.
	 * @param array   $object_ids   List of term object IDs.
	 */